﻿@model NapCardOnline.Models.Commission

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Commission</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.CommissionPercent)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CommissionPercent)
            @Html.ValidationMessageFor(model => model.CommissionPercent)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_CommissionLevelID, "CommissionLevel")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_CommissionLevelID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_CommissionLevelID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_ServiceID, "Service")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_ServiceID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_ServiceID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_CommissionTypeID, "CommissionType")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_CommissionTypeID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_CommissionTypeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_CostID, "Cost")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_CostID", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_CostID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CommisstionDesc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CommisstionDesc)
            @Html.ValidationMessageFor(model => model.CommisstionDesc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CommissionDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CommissionDate)
            @Html.ValidationMessageFor(model => model.CommissionDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsActive)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsActive)
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsDelete)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsDelete)
            @Html.ValidationMessageFor(model => model.IsDelete)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CommissionOrder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CommissionOrder)
            @Html.ValidationMessageFor(model => model.CommissionOrder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AACreateDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AACreateDate)
            @Html.ValidationMessageFor(model => model.AACreateDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AAUpdateDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AAUpdateDate)
            @Html.ValidationMessageFor(model => model.AAUpdateDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AAUpdatedUser)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AAUpdatedUser)
            @Html.ValidationMessageFor(model => model.AAUpdatedUser)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AACreatedUser)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AACreatedUser)
            @Html.ValidationMessageFor(model => model.AACreatedUser)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
